Integrand size = 24, antiderivative size = 92 \[ \int \tan (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx=-\frac {2 \sqrt {2} a^{3/2} \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {2 a \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3608, 3559, 3561, 212} \[ \int \tan (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx=-\frac {2 \sqrt {2} a^{3/2} \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {2 a \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d} \]
[In]
[Out]
Rule 212
Rule 3559
Rule 3561
Rule 3608
Rubi steps \begin{align*} \text {integral}& = \frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d}-i \int (a+i a \tan (c+d x))^{3/2} \, dx \\ & = \frac {2 a \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d}-(2 i a) \int \sqrt {a+i a \tan (c+d x)} \, dx \\ & = \frac {2 a \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d}-\frac {\left (4 a^2\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{d} \\ & = -\frac {2 \sqrt {2} a^{3/2} \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{d}+\frac {2 a \sqrt {a+i a \tan (c+d x)}}{d}+\frac {2 (a+i a \tan (c+d x))^{3/2}}{3 d} \\ \end{align*}
Time = 0.33 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.88 \[ \int \tan (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx=\frac {-6 \sqrt {2} a^{3/2} \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )+2 a (4+i \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{3 d} \]
[In]
[Out]
Time = 0.87 (sec) , antiderivative size = 70, normalized size of antiderivative = 0.76
method | result | size |
derivativedivides | \(\frac {\frac {2 \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}+2 a \sqrt {a +i a \tan \left (d x +c \right )}-2 a^{\frac {3}{2}} \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )}{d}\) | \(70\) |
default | \(\frac {\frac {2 \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3}+2 a \sqrt {a +i a \tan \left (d x +c \right )}-2 a^{\frac {3}{2}} \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )}{d}\) | \(70\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 258 vs. \(2 (71) = 142\).
Time = 0.24 (sec) , antiderivative size = 258, normalized size of antiderivative = 2.80 \[ \int \tan (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx=-\frac {3 \, \sqrt {2} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a^{3}}{d^{2}}} \log \left (\frac {4 \, {\left (a^{2} e^{\left (i \, d x + i \, c\right )} + {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a^{3}}{d^{2}}} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a}\right ) - 3 \, \sqrt {2} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a^{3}}{d^{2}}} \log \left (\frac {4 \, {\left (a^{2} e^{\left (i \, d x + i \, c\right )} - {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a^{3}}{d^{2}}} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a}\right ) - 2 \, \sqrt {2} {\left (5 \, a e^{\left (3 i \, d x + 3 i \, c\right )} + 3 \, a e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{3 \, {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \]
[In]
[Out]
\[ \int \tan (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx=\int \left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}} \tan {\left (c + d x \right )}\, dx \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.11 \[ \int \tan (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx=\frac {3 \, \sqrt {2} a^{\frac {7}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) + 2 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{2} + 6 \, \sqrt {i \, a \tan \left (d x + c\right ) + a} a^{3}}{3 \, a^{2} d} \]
[In]
[Out]
\[ \int \tan (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx=\int { {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \tan \left (d x + c\right ) \,d x } \]
[In]
[Out]
Time = 5.10 (sec) , antiderivative size = 74, normalized size of antiderivative = 0.80 \[ \int \tan (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx=\frac {2\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{3\,d}+\frac {2\,a\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{d}-\frac {2\,\sqrt {2}\,a^{3/2}\,\mathrm {atanh}\left (\frac {\sqrt {2}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{2\,\sqrt {a}}\right )}{d} \]
[In]
[Out]